using System;
using Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Request;
using Sinacor.Servico.Bovespa.Ordens.BusinessEntity;

namespace Sinacor.Servico.Bovespa.Ordens.Service.ServiceImplementation.Translator
{
	public static class TranslateRealizarCasamentoOrdemFinanciamentoPOPRequest
	{
		public static Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Ordem ToOrdem(DataContract.Request.RealizarCasamentoOrdemFinanciamentoPOPRequest from)
		{
			if (from == null) return null;

			BusinessEntity.Ordem to = new BusinessEntity.Ordem();
			to.DataOrdem = from.DataOrdem;
			to.NumeroOrdem = from.NumeroOrdem;
			to.NumeroOrdemSubSequencia = from.NumeroOrdemSequencia;
			to.DataPregao = from.DataPregao;
			return to;
		}
	}
}

